//app.js
App({
  // onLaunch: function () {

  //   console.log(wx.getLaunchOptionsSync())
  
  // },
  // onShow:function(){
  //   console.log(wx.getLaunchOptionsSync())
  // },

  onLaunch (options) {
    // Do something initial when launch.
    console.log("onLaunch")
  },
  onShow (options) {
    // Do something when show.
    console.log("onshow")
  },
  onHide () {
    // Do something when hide.
    console.log("onhide")
  },
  onError (msg) {
    console.log(msg)
  },

  globalData: {
    userInfo: null,
    message:"hello world"
  }
})